<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>vue中的列表循环2</title>
  <script src="../asset/js/vue.js"></script>
</head>

<body>
  <div id="app">
    <div v-for='(item,key,index) of userInfo'>{{item}} --- {{key}} --- {{index}}</div>
  </div>
  <script>
    // push pop shift unshift splice sort reverse 改变数组
    let vm = new Vue({
      el: '#app',
      data: {
        userInfo: {
          name: 'Dell',
          age: 28,
          gender: 'male',
          salary: 'secret'
        }
      }
    })
  </script>
</body>

</html>